package org.web.clientlistmanager.demo.controller;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


//import org.web.clientlistmanager.server.config.Config1;
@Controller
@RequestMapping("/")
public class HelloWorldController {

    private static final Logger logger = LogManager.getLogger(HelloWorldController.class);


    @RequestMapping("helloWorld")
    @ResponseBody
    public String sayHelloWorld(String name) {
        logger.info("name is : " + name);
        System.out.println("hello " + name);
        return "welcome to world, " + name;
    }

}
